package com.hoshiicloud.goods.param.sku;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
* <p>
* 新增扩展商品SKU参数
* </p>
*
* @author zhangshuhu
* @since 2019-06-04
*/

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value="新增扩展商品SKU", description="新增扩展商品SKU")
public class ExtSkuAddParam implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long companyId;

    private Long platformId;

    private Long storeId;

    @ApiModelProperty(value = "spuId")
    private Long spuId;

    @ApiModelProperty(value = "skuId")
    private Long skuId;

    private String skuTitle;

    @ApiModelProperty(value = "售价")
    private BigDecimal salePrice;

    @ApiModelProperty(value = "市场价")
    private BigDecimal marketPrice;

    @ApiModelProperty(value = "成本价")
    private BigDecimal costPrice;

    @ApiModelProperty(value = "供应商")
    private Long vendorId;

    @ApiModelProperty(value = "sku图片")
    private String skuImage;

    @ApiModelProperty(value = "属性")
    private String extendProperty;

    @ApiModelProperty(value = "规格")
    private String extendSpec;

    @ApiModelProperty(value = "1-单类仓库 2-多类仓库")
    private Integer dispatchPolicy;

    @ApiModelProperty(value = "单类仓库类别 ID")
    private Long dispatchWhid;

    @ApiModelProperty(value = "多类仓库类别ID 集合   1:2:3")
    private String dispatchWhids;

    @ApiModelProperty(value = "是否库存足够才能下单 1 是 0 否")
    private Integer storeEnough;

    @ApiModelProperty(value = "收货间隔时间，以天为单位，默认为1天")
    private Integer receiptInterval;

    @ApiModelProperty(value = "提货时间")
    private LocalDateTime receiptDate;

    @ApiModelProperty(value = "创建人")
    private String createdBy;


    @ApiModelProperty(value = "状态  0-待审批 1-审批未过 2-已上架 3-已下架")
    private Integer status;

    @ApiModelProperty(value = "是否删除")
    private Integer deleted;

}
